package com.yuhs.zixing.study.design.pattern.dp002.structural.s007.proxy.p002;

import java.time.LocalTime;

/**
 * @description:
 * @author: yuhs
 * @date: 2022/5/2 11:31 AM
 */
public class Client002 {
    public static void main(String[] args) {
        //定义一个痴迷的玩家
        IGamePlayer002 player = new GamePlayer002("张三");
        //然后再定义一个代练者
        IGamePlayer002 proxy = new GamePlayerProxy002(player);
        //开始打游戏，记下时间戳
        System.out.println("开始时间是：2009-8-25 10:45");
        proxy.login("zhangSan", "password");
        //开始杀怪
        proxy.killBoss();
        //升级
        proxy.upgrade();
        //记录结束游戏时间
        System.out.println("结束时间是：2009-8-26 03:40");
    }

}
